﻿// Imports System.ComponentModel

// Public Interface BaseFileService

// #Region "下载"
// ''' <summary>
// ''' 从文件服务器上同步下载文件
// ''' </summary>
// ''' <param name="SourceFileName">从FTP上下载文件</param>
// ''' <param name="DestinationFileName">保存下载文件的文件名和路径</param>
// ''' <returns>如果下载成功，返回True，否则返回False</returns>
// ''' <remarks></remarks>
// Function Download(ByVal SourceFileName As String, ByVal DestinationFileName As String) As Boolean

// ''' <summary>
// ''' 从文件服务器上异步下载文件
// ''' </summary>
// ''' <param name="SourceFileName">从FTP上下载文件</param>
// ''' <param name="DestinationFileName">保存下载文件的文件名和路径</param>
// ''' <remarks></remarks>
// Sub DownloadAsync(ByVal SourceFileName As String, ByVal DestinationFileName As String)
// #End Region

// #Region "上传"
// ''' <summary>
// ''' 将文件上传到文件服务器
// ''' </summary>
// ''' <param name="sourceFileName">要上传的本地文件，含路径</param>
// ''' <param name="destinationFileName">目标文件，含路径</param>
// ''' <returns>如果上传成功，返回True，否则返回False</returns>
// ''' <remarks></remarks>
// Function Upload(ByVal SourceFileName As String, ByVal DestinationFileName As String) As Boolean

// ''' <summary>
// ''' 将文件上传到文件服务器
// ''' </summary>
// ''' <param name="sourceFileName">要上传的本地文件，含路径</param>
// ''' <param name="destinationFileName">目标文件，含路径</param>
// ''' <remarks></remarks>
// Sub UploadAsync(ByVal SourceFileName As String, ByVal DestinationFileName As String)
// #End Region

// #Region "删除"
// ''' <summary>
// ''' 删除文件服务器上的文件
// ''' </summary>
// ''' <param name="FileName">要删除的文件，含路径</param>
// ''' <returns>如果删除成功，返回True，否则返回False</returns>
// ''' <remarks></remarks>
// Function Delete(ByVal FileName As String) As Boolean

// #End Region

// #Region "生成图片地址"
// ''' <summary>
// ''' 生成一个用HTTP GET方法访问文件的Uri
// ''' </summary>
// ''' <param name="FileName">文件服务器的文件名</param>
// ''' <returns></returns>
// ''' <remarks></remarks>
// Function GeneratePresignedUri(ByVal FileName As String) As Uri

// ''' <summary>
// ''' 生成一个用HTTP GET方法访问指定图片大小的Uri
// ''' </summary>
// ''' <param name="FileName">文件服务器的文件名</param>
// ''' <returns></returns>
// ''' <remarks></remarks>
// Function GeneratePresignedUri(ByVal FileName As String, ByVal Width As Integer, ByVal Height As Integer) As Uri
// #End Region

// #Region "属性"
// ''' <summary>
// ''' 图片处理服务的地址
// ''' </summary>
// ''' <value></value>
// ''' <returns></returns>
// ''' <remarks></remarks>
// Property ImgService As Uri
// #End Region

// #Region "异步事件"
// ''' <summary>
// ''' 异步下载进度发生改变触发的事件
// ''' </summary>
// Event DownloadProgressChanged(ByVal sender As Object, ByVal e As DownloadProgressChangedEventArgs)

// ''' <summary>
// ''' 异步下载文件完成之后触发的事件
// ''' </summary>
// Event DownloadFileCompleted(ByVal sender As Object, ByVal e As AsyncCompletedEventArgs)

// ''' <summary>
// ''' 在异步数据下载操作完成时发生。
// ''' </summary>
// ''' <remarks></remarks>
// Event DownloadDataCompleted(ByVal sender As Object, ByVal e As DownloadDataCompletedEventArgs)

// ''' <summary>
// ''' 异步上传进度发生改变触发的事件
// ''' </summary>
// Event UploadProgressChanged(ByVal sender As Object, ByVal e As UploadProgressChangedEventArgs)

// ''' <summary>
// ''' 异步上传文件完成之后触发的事件
// ''' </summary>
// Event UploadFileCompleted(ByVal sender As Object, ByVal e As UploadFileCompletedEventArgs)

// ''' <summary>
// ''' 在异步数据上载操作完成时发生。
// ''' </summary>
// ''' <remarks></remarks>
// Event UploadDataCompleted(ByVal sender As Object, ByVal e As UploadDataCompletedEventArgs)
// #End Region

// '#Region "声明委托"
// '    <EditorBrowsableAttribute(EditorBrowsableState.Never)>
// '    Delegate Sub De_DownloadProgressChanged(ByVal sender As Object, ByVal e As DownloadProgressChangedEventArgs)
// '    <EditorBrowsableAttribute(EditorBrowsableState.Never)>
// '    Delegate Sub De_DownloadDataCompleted(ByVal sender As Object, ByVal e As AsyncCompletedEventArgs)
// '    <EditorBrowsableAttribute(EditorBrowsableState.Never)>
// '    Delegate Sub De_UploadProgressChanged(ByVal sender As Object, ByVal e As UploadProgressChangedEventArgs)
// '    <EditorBrowsableAttribute(EditorBrowsableState.Never)>
// '    Delegate Sub De_UploadFileCompleted(ByVal sender As Object, ByVal e As UploadFileCompletedEventArgs)
// '#End Region

// End Interface
// Imports System.ComponentModel

// Public Interface BaseFileService

// #Region "下载"
// ''' <summary>
// ''' 从文件服务器上同步下载文件
// ''' </summary>
// ''' <param name="SourceFileName">从FTP上下载文件</param>
// ''' <param name="DestinationFileName">保存下载文件的文件名和路径</param>
// ''' <returns>如果下载成功，返回True，否则返回False</returns>
// ''' <remarks></remarks>
// Function Download(ByVal SourceFileName As String, ByVal DestinationFileName As String) As Boolean

// ''' <summary>
// ''' 从文件服务器上异步下载文件
// ''' </summary>
// ''' <param name="SourceFileName">从FTP上下载文件</param>
// ''' <param name="DestinationFileName">保存下载文件的文件名和路径</param>
// ''' <remarks></remarks>
// Sub DownloadAsync(ByVal SourceFileName As String, ByVal DestinationFileName As String)
// #End Region

// #Region "上传"
// ''' <summary>
// ''' 将文件上传到文件服务器
// ''' </summary>
// ''' <param name="sourceFileName">要上传的本地文件，含路径</param>
// ''' <param name="destinationFileName">目标文件，含路径</param>
// ''' <returns>如果上传成功，返回True，否则返回False</returns>
// ''' <remarks></remarks>
// Function Upload(ByVal SourceFileName As String, ByVal DestinationFileName As String) As Boolean

// ''' <summary>
// ''' 将文件上传到文件服务器
// ''' </summary>
// ''' <param name="sourceFileName">要上传的本地文件，含路径</param>
// ''' <param name="destinationFileName">目标文件，含路径</param>
// ''' <remarks></remarks>
// Sub UploadAsync(ByVal SourceFileName As String, ByVal DestinationFileName As String)
// #End Region

// #Region "删除"
// ''' <summary>
// ''' 删除文件服务器上的文件
// ''' </summary>
// ''' <param name="FileName">要删除的文件，含路径</param>
// ''' <returns>如果删除成功，返回True，否则返回False</returns>
// ''' <remarks></remarks>
// Function Delete(ByVal FileName As String) As Boolean

// #End Region

// #Region "生成图片地址"
// ''' <summary>
// ''' 生成一个用HTTP GET方法访问文件的Uri
// ''' </summary>
// ''' <param name="FileName">文件服务器的文件名</param>
// ''' <returns></returns>
// ''' <remarks></remarks>
// Function GeneratePresignedUri(ByVal FileName As String) As Uri

// ''' <summary>
// ''' 生成一个用HTTP GET方法访问指定图片大小的Uri
// ''' </summary>
// ''' <param name="FileName">文件服务器的文件名</param>
// ''' <returns></returns>
// ''' <remarks></remarks>
// Function GeneratePresignedUri(ByVal FileName As String, ByVal Width As Integer, ByVal Height As Integer) As Uri
// #End Region

// #Region "属性"
// ''' <summary>
// ''' 图片处理服务的地址
// ''' </summary>
// ''' <value></value>
// ''' <returns></returns>
// ''' <remarks></remarks>
// Property ImgService As Uri
// #End Region

// #Region "异步事件"
// ''' <summary>
// ''' 异步下载进度发生改变触发的事件
// ''' </summary>
// Event DownloadProgressChanged(ByVal sender As Object, ByVal e As DownloadProgressChangedEventArgs)

// ''' <summary>
// ''' 异步下载文件完成之后触发的事件
// ''' </summary>
// Event DownloadFileCompleted(ByVal sender As Object, ByVal e As AsyncCompletedEventArgs)

// ''' <summary>
// ''' 在异步数据下载操作完成时发生。
// ''' </summary>
// ''' <remarks></remarks>
// Event DownloadDataCompleted(ByVal sender As Object, ByVal e As DownloadDataCompletedEventArgs)

// ''' <summary>
// ''' 异步上传进度发生改变触发的事件
// ''' </summary>
// Event UploadProgressChanged(ByVal sender As Object, ByVal e As UploadProgressChangedEventArgs)

// ''' <summary>
// ''' 异步上传文件完成之后触发的事件
// ''' </summary>
// Event UploadFileCompleted(ByVal sender As Object, ByVal e As UploadFileCompletedEventArgs)

// ''' <summary>
// ''' 在异步数据上载操作完成时发生。
// ''' </summary>
// ''' <remarks></remarks>
// Event UploadDataCompleted(ByVal sender As Object, ByVal e As UploadDataCompletedEventArgs)
// #End Region

// '#Region "声明委托"
// '    <EditorBrowsableAttribute(EditorBrowsableState.Never)>
// '    Delegate Sub De_DownloadProgressChanged(ByVal sender As Object, ByVal e As DownloadProgressChangedEventArgs)
// '    <EditorBrowsableAttribute(EditorBrowsableState.Never)>
// '    Delegate Sub De_DownloadDataCompleted(ByVal sender As Object, ByVal e As AsyncCompletedEventArgs)
// '    <EditorBrowsableAttribute(EditorBrowsableState.Never)>
// '    Delegate Sub De_UploadProgressChanged(ByVal sender As Object, ByVal e As UploadProgressChangedEventArgs)
// '    <EditorBrowsableAttribute(EditorBrowsableState.Never)>
// '    Delegate Sub De_UploadFileCompleted(ByVal sender As Object, ByVal e As UploadFileCompletedEventArgs)
// '#End Region

// End Interface
